package com.mybatisplus.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.dao.TeacherMapper;
import com.mybatisplus.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements TeacherService{

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> getTeacherList() {
        return teacherMapper.getTeacherList();
    }

    @Override
    public void addTeacher(Teacher teacher) {
        teacherMapper.addTeacher(teacher);
    }
}